﻿using program01;
using System;

namespace Program01
{
    class Program
    {
        static void Main(string[] args)
        {
            var person = new Person()
            {
                FirestNmae = "Yummy",
                LastNmae = "Justin",
                Age = 30,//属性值可变
                //Sex = true //类中的set属性是私有字段，不能修改
            };
            Console.WriteLine(person.FullName);
            Console.WriteLine(person.Age);
            Console.WriteLine(person.Sex ? "男" : "女");
        }
    }
}
